<?php  

/**
 * Helper for checking if we are on a homepage
 *
 * @since 2011-07-30
 * @author Jakub Kułak <jakub.kulak@gmail.com>
 */
class Zend_View_Helper_IsHomePage extends Zend_View_Helper_Abstract 
{ 
    public function isHomePage() 
    {
        return ( 'homesite' == Zend_Controller_Front::getInstance()->getRouter()->getCurrentRouteName() );
    }
}